package com.msr.mapper;

import com.msr.bean.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author tom
 * @version V1.0
 * @Package com.msr.mapper
 * @date 2024/1/12 9:40
 * @Copyright © 株式会社多言语系统研究所
 */
@Mapper
public interface FoodMapper {
    //1、查询所有的菜品列表数据(不分页)
    public List<Food> foodAll(Food food);

    //2、统计总记录数
    public int totalSize(Food food);

    //3、查询所有的菜品列表数据(分页)
    public List<Food> foodAllPage(Map<String,Object> map);

    //4、增加菜品
    public int addFood(Food food);

    Food findFoodById(int foodId);

    int updateFood(Food food);

    int delFood(int id);
}
